home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-17 | 1.8 KB | 44 lines | [TEXT/KAHL] |
- /* Layers.h */
-
- /* Part of the undocumented Layer Manager structures and calls
- * Information found with the help of MacsBug under MacOS 7.0.
- * Please note that using this information may make your mac
- * explode (hey, this could be a subject for a QuickTime moovie !);
- * so use at your own risks, this may break in the future,
- * etc.. (usual disclaimeer).
- * I only wish that Apple will document this manager in a very near
- * future (let's dream...).
- *
- * What I found was that a layer is associated with each running
- * applications (if it has a user-interface), which groups all
- * windows of that application. This is how you can hide an application
- * (remember 'applications' menu under system 7) and get the list of
- * other applications windows. Have fun.
- *
- * PS : If you have more information on the Layer Manager, please
- * let me know! You can join me at hugues@isoft.fr
- */
-
- // LayerRecord is similar to a WindowRecord.
- typedef WindowRecord LayerRecord;
- typedef WindowPeek LayerPtr;
-
- // This function returns a pointer to the first layer record
- // of the front layer on screen (front application).
- // Other ones are then accessed by the GetNextLayer macro.
- pascal LayerPtr GetFirstLayer(void)
- = {0x7003, 0xA829};
-
- // This function returns a pointer to the first window record
- // in the windows list of this layer.
- pascal WindowPtr GetFirstLayerWindow(LayerPtr aLayer)
- = {0x7006, 0xa829};
-
- // Some macros to access other information, and to hide and show a layer
- #define GetNextLayer(aLayer) (aLayer->nextWindow)
- #define GetLayerInfo(aLayer) ((LayerInfoPtr)aLayer->refCon)
- #define HideLayer(aLayer) HideWindow((WindowPtr)aLayer)
- #define ShowLayer(aLayer) ShowWindow((WindowPtr)aLayer)
- #define ShowHideLayer(aLayer,showFlag) ShowHide((WindowPtr)aLayer, showFlag)
- #define HiddenLayer(aLayer) aLayer->visible
-